package staticindex;

public class testS {
    public static void main(String[] args) {
        //一旦是静态属性 可以直接用类名调用
        Student.teacherName="hello";
        //create object
        Student s1=new Student();
        s1.setAge(23);
        s1.setGender("male");
        s1.setName("guolanbo");
       
        s1.study();
        s1.showAll();
        //2
        Student s2=new Student();
        s2.setAge(23);
        s2.setGender("male");
        s2.setName("guolanbo2");
        s2.study();
        s2.showAll();
    }
}
